package cn.fws.meap.user.entity;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import cn.fws.framework.web.entity.BaseEntity;
import java.util.Date;

/**
 * 个人用户表 meap_user
 * 
 * @author chenkh
 * @date 2019-03-07
 */
public class User extends BaseEntity {

	private static final long serialVersionUID = 1L;
	
	/** 用户编号 */
	private String id;
	/** 用户标识 */
	private String openid;
	/** 用户昵称 */
	private String nickname;
	/** 性别 */
	private String sex;
	/** 城市 */
	private String city;
	/** 国家 */
	private String country;
	/** 省份 */
	private String province;
	/** 用户头像 */
	private String userImgKey;
	/** 注册时间 */
	private Date subscribeTime;
	/** 公众号标识 */
	private String unionid;
	/** 用户分组 */
	private String userGroup;
	/** 用户状态 */
	private String userStatus;
	/** 用户类型 */
	private String userType;
	/** 用户IP */
	private String userIp;
	/** 最后访问时间 */
	private Date historyTime;
	/** 是否认证 */
	private String isAuth;
	/** 是否绑定账号 */
	private String isBind;
	/** 个人简介 */
	private String brief;

	public String getBrief() {
		return brief;
	}

	public void setBrief(String brief) {
		this.brief = brief;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getId() {
		return id;
	}
	public void setOpenid(String openid) {
		this.openid = openid;
	}

	public String getOpenid() {
		return openid;
	}
	public void setNickname(String nickname) {
		this.nickname = nickname;
	}

	public String getNickname() {
		return nickname;
	}
	public void setSex(String sex) {
		this.sex = sex;
	}

	public String getSex() {
		return sex;
	}
	public void setCity(String city) {
		this.city = city;
	}

	public String getCity() {
		return city;
	}
	public void setCountry(String country) {
		this.country = country;
	}

	public String getCountry() {
		return country;
	}
	public void setProvince(String province) {
		this.province = province;
	}

	public String getProvince() {
		return province;
	}
	public void setUserImgKey(String userImgKey) {
		this.userImgKey = userImgKey;
	}

	public String getUserImgKey() {
		return userImgKey;
	}
	public void setSubscribeTime(Date subscribeTime) {
		this.subscribeTime = subscribeTime;
	}

	public Date getSubscribeTime() {
		return subscribeTime;
	}
	public void setUnionid(String unionid) {
		this.unionid = unionid;
	}

	public String getUnionid() {
		return unionid;
	}
	public void setUserGroup(String userGroup) {
		this.userGroup = userGroup;
	}

	public String getUserGroup() {
		return userGroup;
	}
	public void setUserStatus(String userStatus) {
		this.userStatus = userStatus;
	}

	public String getUserStatus() {
		return userStatus;
	}
	public void setUserType(String userType) {
		this.userType = userType;
	}

	public String getUserType() {
		return userType;
	}
	public void setUserIp(String userIp) {
		this.userIp = userIp;
	}

	public String getUserIp() {
		return userIp;
	}
	public void setHistoryTime(Date historyTime) {
		this.historyTime = historyTime;
	}

	public Date getHistoryTime() {
		return historyTime;
	}
	public void setIsAuth(String isAuth) {
		this.isAuth = isAuth;
	}

	public String getIsAuth() {
		return isAuth;
	}
	public void setIsBind(String isBind) {
		this.isBind = isBind;
	}

	public String getIsBind() {
		return isBind;
	}

    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("openid", getOpenid())
            .append("nickname", getNickname())
            .append("sex", getSex())
            .append("city", getCity())
            .append("country", getCountry())
            .append("province", getProvince())
            .append("userImgKey", getUserImgKey())
            .append("subscribeTime", getSubscribeTime())
            .append("unionid", getUnionid())
            .append("userGroup", getUserGroup())
            .append("userStatus", getUserStatus())
            .append("userType", getUserType())
            .append("userIp", getUserIp())
            .append("historyTime", getHistoryTime())
            .append("isAuth", getIsAuth())
            .append("isBind", getIsBind())
            .append("brief", getBrief())
            .toString();
    }
}
